package com.example.his.api.constant;

/**
 * @author huixh
 */
public enum SystemEnum {
    WEB ("WEB"),
    APP ("APP");

    private String type;

    SystemEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }
    public static SystemEnum getEnum(String type) {
        for (SystemEnum e : SystemEnum.values()) {
            if (e.getType().equals(type)) {
                return e;
            }
        }
        return null;
    }
}
